//
//  ASTextModel.m
//  AvatarShow
//
//  Created by xunruiIOS on 2021/4/29.
//

#import "ASTextModel.h"

@implementation ASTextModel

+ (NSDictionary *)modelCustomPropertyMapper {
    return @{
                @"tID":@"id",
             };
}

- (CGFloat)mainH{
    if (_mainH < 1 && [self.content isNotBlank]) {
        CGFloat mainW = SCREEN_WIDTH - (25 + 18)*2;
        CGFloat h = [ASTool getHeightWithText:self.content width:mainW font:[UIFont systemFontOfSize:15]];
        _mainH = h + 40;
        if (_mainH < 85) {
            _mainH = 85;
        }
    }
    return _mainH;
}

@end
